const state = {
  dialogShow: false // 初始化一个colects数组
}
const getters = {
  renderCollects (state) { // 承载变化的collects
    return state.dialogShow
  }
}
const mutations = {
  pushCollects (state, val) { // 如何变化collects,插入items
    state.dialogShow = val
  }
}
const actions = {
  invokePushItems (context, val) { // 触发mutations里面的pushCollects ,传入数据形参item 对应到items
    context.commit('pushCollects', !state.dialogShow)
  }
}
export default {
  namespaced: true, // 用于在全局引用此文件里的方法时标识这一个的文件名
  state,
  getters,
  mutations,
  actions
}
